<!-- 邮件详情，包括代理人和提醒 -->
<style>
<!--
#inof_form{
	margin-top: 42px;
	border-top: 1px solid #B9B9B9;
}
.mail_header td{
	line-height:2em;
}
-->
</style>
<div class="customer_accordion">
	<?php //foreach ($this->mail as $mail){?>
	<?php $mail = $this->mail;
		  
	{?>
	<h3><a href="#"><?php echo $mail["subject"];?></a></h3>
	<div>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
		 <tr class="mail_header">
		    <td colspan="2">
		    	<div><h2><?php echo $mail["subject"];?></h2></div>
		    </td>
		  </tr>
		  <tr class="mail_header">
		   	<td style=" width: 7em; ">发件人：</td>
		    <td>
		     <?php echo $mail["from_name"]?> &lt<?php echo $mail["from"]?>&gt
		    </td>
		  </tr>
		  <tr class="mail_header">
		    <td>收件人：</td>
		    <td>
		    <?php echo $mail["to"]?>
		    </td>
		  </tr>
		  <tr class="mail_header">
		    <td>时&nbsp;&nbsp;间：</td>
		    <td>
		    <?php echo $mail["send_time"]?>
		    </td>
		  </tr>
		  <?php if (!empty($mail["attachment"])){?>
		  <tr class="mail_header">
		    <td>附&nbsp;&nbsp;件：</td>
		    <td>
		    <?php if(!empty($mail["attachment"]["isOutBox"])){
		    		//if(!empty($mail["attachment"]["isExsits"])){
		    ?>
		    	<span>
		    	 	<img src="<?php echo $this->pagePath?>/images/attachment.png" />
		    	 	<a href="<?php echo $this->pagePath?>/file/public/uploads/<?php echo $mail["attachment"]["file"]?>/showname/<?php echo $mail["attachment"]["name"]?>" target="_blank" >
		    	 		<?php echo empty($mail["attachment"]["name"])?"":$mail["attachment"]["name"];?>
		    	 	</a>
		    	 	<span>&nbsp;&nbsp;</span>
		    	 </span>
		    <?php 	//}
		    }else {?>
		    <?php foreach($mail["attachment"] as $id => $at){?>
		    	 <span>
		    	 	<img src="<?php echo $this->pagePath?>/images/attachment.png" />
		    	 	<a href="<?php echo $this->pagePath?>/mail/getattachment/boxtype/inbox/id/<?php echo $this->mailid?>/partid/<?php echo $id?>" target="_blank" >
		    	 		<?php echo empty($at->d_parameters["filename"])?"":$at->d_parameters["filename"];?>
		    	 	</a>
		    	 	<span>&nbsp;&nbsp;</span>
		    	 </span>
			<?php }
		    }?>
		    </td>
		  </tr>
		  <?php }?>
		  <tr>
		    <td colspan="2">
		    	<div id="inof_form"><?php //echo $mail["Data"];?><?php echo $mail["body"];?></div>
		    </td>
		  </tr>
		</table>
	</div>
	<?php }?>
</div>